package com.yololabelmaker;

import javax.swing.*;
import java.awt.*;

public class Main {
    public static void main(String[] args) {
        // 在事件调度线程中启动GUI
        SwingUtilities.invokeLater(() -> {
            CMainWindow mainWindow = new CMainWindow();
            mainWindow.setTitle("YOLO标签制作工具");
            mainWindow.setSize(1024, 768);
            mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            mainWindow.setLocationRelativeTo(null); // 居中显示
            mainWindow.setVisible(true);
        });
    }
}